<template>
  <div>
    <p style="color: white">1</p>
    <van-nav-bar
      :fixed="true"
      title="新增收货地址"
      left-text="返回"
      @click-left="onClickLeft"
      left-arrow
    />
    <van-address-edit
      :area-list="areaList"
      show-postal
      show-set-default
      show-search-result
      :area-columns-placeholder="['请选择', '请选择', '请选择']"
      @save="onSave"
    />
  </div>
</template>

<script>
import {Toast} from 'vant';
import areaList from '../assets/area.js';
export default {
  name: "addAddress",
  data() {
    return {
      areaList,
      searchResult: [],
      isEdit: true
    };
  },
  methods: {
    onSave() {
      Toast('save');
      this.$router.push('/myAddress');
    },
    onDelete() {
      Toast('delete');
      this.$router.push('/myAddress');
    },
    onClickLeft() {
      this.$router.push('/myAddress');
    },
  },
}
</script>

<style scoped>

</style>
